package leetCode;

/**
 * 翻转字符串
 */
public class StringReverse {

    public static void main(String[] args) {
        System.out.println(resverse("abcdefg$###"));
    }

    public static String resverse(String strArr) {
        StringBuilder sb = new StringBuilder();
        char[] charArr = strArr.toCharArray();
        for (int i = strArr.length() - 1; i >= 0; i--) {
            sb.append(charArr[i]);
        }
        return sb.toString();
    }

}
